Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don\'t add profile dependencies to required_by array of modules #2697

Closed
wants to merge 1 commit into from
Closed

Don\'t add profile dependencies to required_by array of modules #2697

wants to merge 1 commit into from

Conversation

balsama
Copy link
Contributor

@balsama balsama commented Mar 27, 2017

Using the patch in D.O Issue#1356276, it's possible for more than one profile to be installed. Dependencies of profiles have never prevented a module from being uninstalled, but the logic used in pm-uninstall only makes that exception for the active profile.

This patch completely removes profiles from the required_by key in the modules list provided by drush_get_modules(). If the patch in D.O Issue#1356276 is applied, it uses the profile_handler service to get an array of installed modules. Otherwise, it uses drupal_get_profile() to emulate that behavior.

@weitzman
Copy link
Member

Looks reasonable at first glance. We need a patch for master branch before this gets merged. Master branch is much simpler. See https://github.com/drush-ops/drush/blob/master/src/Commands/PmCommands.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants